﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Microsoft.SharePoint;

namespace TestWinForms
{
    public partial class Form1 : Form
    {

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click_1(object sender, EventArgs e)
        {
            Exception err = null;

            //JobOrgStructure obj = new JobOrgStructure();
            //obj.Execute(new Guid());
            //JobOrgStructure.InvalidateStructure();

            // Delete "АУП" Terms Records
            //err = OrgStructure_DLL.OrgStructure.DeleteOrgStructure(@"http://localhost/");

            // Invalidate
            err = OrgStructure_DLL.OrgStructure.InvalidateStructure(@"http://localhost/");
            if (err != null)
            {
                MessageBox.Show("Error - " + err.Message);
                return;
            }

        }

        private void btnTest2_Click(object sender, EventArgs e)
        {

        }

        private void btnStructureThreeFill_Click(object sender, EventArgs e)
        {

        }


    }
}
